ns16550: misc minor adjustments
authorJan Beulich <jbeulich@suse.com>
Fri, 13 Nov 2015 14:41:47 +0000 (15:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 13 Nov 2015 14:41:47 +0000 (15:41 +0100)
commitcc967461e7f3b392990ca8c5ca02a435960ab0c7
treee2203641accb4a619e774eae5c922689e6322f58
parent5ea01bf96e5072ac88e23f35cd087a2fdb9eb856
ns16550: misc minor adjustments

First and foremost: fix documentation: The use of "clock_hz", when
"base_baud" was meant, has taken me several hours (suspecting a more
complicated problem with the PCIe card I've been trying to get
working). At once correct the "gdb" option, which is more like
"console", not like "com<N>".

Next, fix the types of ns_{read,write}_reg(): Especially the former
having had a signed return type so far caused quite interesting effects
when determining to baud rate if "auto" was specified. In that same
code, also avoid dividing by zero when in fact the baud rate was not
previously set up.

Further, accept I/O port based serial PCI cards with a port range wider
than 8 bytes.

Finally, slightly rearrange struct ns16550 to reduce holes.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
docs/misc/xen-command-line.markdown
xen/drivers/char/ns16550.c